package com.zdtech.action;

import java.util.List;

import javax.annotation.Resource;

import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionSupport;
import com.zdtech.common.DataResults;
import com.zdtech.entity.TUser;
import com.zdtech.service.BaseSerive;
public class ShowUserAction extends ActionSupport{
	
	private DataResults<TUser> dataResults = new DataResults<>();
	@Resource
	private BaseSerive baseSerive;

	public String execute() throws Exception {
		List<TUser> userlist = baseSerive.showUserAll();
		dataResults.setSuccess(true);
		dataResults.setMessage("成功");
		dataResults.setResults(userlist);
		return Action.SUCCESS;
	}
	public DataResults<TUser> getDataResults() {
		return dataResults;
	}
	public void setDataResults(DataResults<TUser> dataResults) {
		this.dataResults = dataResults;
	}

}
